package com.itheima.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.admin.pojo.Role;
import com.itheima.admin.vo.RoleAuthVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author WXL
 * 角色的dao层
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    int deleteRoleUser(@Param("roleId") String roleId);

    int deleteRoleModule(@Param("roleId") String roleId);



    List<String> queryModulesById(@Param("roleId") String roleId);

    boolean addRoleToModule(List<RoleAuthVo> list);
}
